/*==============================================================================
**                                  Cuong Chu
**                      Proprietary - Copyright (C) 2014
**------------------------------------------------------------------------------
** Supported MCUs      : MCU STM32
** Supported Compilers : KeilC
**------------------------------------------------------------------------------
** File name         : audio.h
**  
** Module name       : Audio
**
** Summary:
**
**= History ===================================================================
** 00.00.01  28/7/2014  Cuong Chu
** - Creation
==============================================================================*/
#ifndef __DV_AUDIO_H__
#define __DV_AUDIO_H__
/******************************************************************************/
/* INCLUSIONS                                                                 */
/******************************************************************************/
#include "stdint.h"
/*******************************************************************************/
/* DEFINITION OF TYPES                                                         */
/*******************************************************************************/

/*******************************************************************************/
/* DEFINITION OF CONSTS                                                        */
/*******************************************************************************/
#ifndef STD_ON
  #define STD_ON 1
#endif

#ifndef STD_OFF
  #define STD_OFF 0
#endif
/* is using DMA  */
#define DAC_DMA_ENABLE                  STD_OFF
/*******************************************************************************/
/* DECLARATION OF GLOBAL FUNCTIONS                                             */
/*******************************************************************************/
/*******************************************************************************
** Function name: AUDIO_Init( void  )
** Description  : The function initializes audio hardware          
** Parameter    : none
** Return value : none
** Remarks      : global variables used, side effects
*******************************************************************************/
void AUDIO_Init
(
  void
);
/*******************************************************************************
** Function name: AUDIO_Out( void  )
** Description  : The function initializes audio hardware          
** Parameter    : - LEFT : value for left channel
**                - RIGHT: value for right channel
** Return value : none
** Remarks      : global variables used, side effects
*******************************************************************************/
void AUDIO_Out
(
  uint32_t LEFT,
  uint32_t RIGHT
);

#endif /* __DV_AUDIO_H__ */
